package com.gdust.gkyx.client.user;

import com.gdust.gkyx.vo.user.LeaderAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: UserFeignClient
 * Package: com.gdust.gkyx.client.user
 * Description:
 *
 * @Author syun
 * @Create 2025/1/28 10:20
 * @Version 1.0
 */
@FeignClient("service-user")
public interface UserFeignClient {

    /**
     * //根据userId查询提货点和团长信息
     * @param userId
     * @return
     */
    @GetMapping("/api/user/leader/inner/getUserAddressByUserId/{userId}")
    public LeaderAddressVo getUserAddressByUserId(@PathVariable("userId") Long userId);
}
